package com.hyl.DTO;

import java.util.List;

/**
 * @author hyl
 * @description 实体类
 * @create 2025-06-13 09:02
 */
public class User {

    private int id;
    private String userName;
    private int userAge;
    private String userAddress;
    private List<Orders> ordersList; //用户关联的订单

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getUserAge() {
        return userAge;
    }

    public void setUserAge(int userAge) {
        this.userAge = userAge;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public List<Orders> getOrdersList() {


        return ordersList;
    }
    public void setOrdersList(List<Orders> ordersList) {
        this.ordersList = ordersList;
    }
    @Override
    public String toString() {
        return "User [id=" + id + ", userName=" + userName + ", userAddress=" + userAddress + ", ordersList=" + ordersList + "]";
    }

}

